package com.yonyougov.devops.cruxcisupport.role.dto;

import com.yonyougov.devops.fwc.api.dto.BaseRequestDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@ApiModel(value = "角色新增")
public class RoleAddRequestDto extends BaseRequestDto {
    @NotEmpty
    @ApiModelProperty(value = "角色名称", required = true)
    private String roleName;

    @NotNull
    @ApiModelProperty(value = "角色类型", required = true)
    private Integer roleType;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;
}
